package com.example.erat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.erat.entity.Submission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@Mapper
public interface SubmissionMapper extends BaseMapper<Submission> {
    /**
     * 查询学生提交次数
     */
    Integer selectSubmissionCount(@Param("params") Map<String, Object> params);

    /**
     * 查询学生平均分
     */
    Double selectAverageScore(@Param("params") Map<String, Object> params);
}    